//
//  ShopperModel.swift
//  E-CycleForShop
//
//  Created by enghou on 17/3/13.
//  Copyright © 2017年 xyxorigation. All rights reserved.
//

import UIKit

class ShopperModel: BaseModel {
    var shoppers : Array<ShopperModelItem> = []
    override init(source sourceDt: Dictionary<String, Any>?) {
        super.init(source: sourceDt)
        if let dataDic = self.data as? Dictionary<String,Any> {
            if let list = dataDic["list"] as? Array<Dictionary<String,Any>> {
                for item in list {
                    let model = ShopperModelItem.init(source: item)
                    shoppers.append(model)
                }
            }
        }
    }
}
